package com.woniu.cms.auth.core.service;

import com.woniu.cms.auth.core.entity.RbacRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.cms.auth.core.vo.RoleVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lilili
 * @since 2022-09-16
 */
public interface IRbacRoleService extends IService<RbacRole> {

    List<RbacRole> allByUserId(Integer userId);

    RoleVo display(Integer userId);

    boolean doAllot(Integer userId, Integer[] roleIds);

    boolean doUnAllot(Integer userId, Integer[] roleIds);
}
